1: | times(x,plus(y,1)) | → plus(times(x,plus(y,times(1,0))),x) | |
2: | times(x,1) | → x | |
3: | plus(x,0) | → x | |
4: | times(x,0) | → 0 | |
5: | TIMES(x,plus(y,1)) | → PLUS(times(x,plus(y,times(1,0))),x) | |
6: | TIMES(x,plus(y,1)) | → TIMES(x,plus(y,times(1,0))) | |
7: | TIMES(x,plus(y,1)) | → PLUS(y,times(1,0)) | |
8: | TIMES(x,plus(y,1)) | → TIMES(1,0) | |